# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
import model_utils.fields
import django.utils.timezone
import autoslug.fields


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Post',
            fields=[
                ('id', models.AutoField(verbose_name='ID', auto_created=True, primary_key=True, serialize=False)),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('start', models.DateTimeField(verbose_name='start', blank=True, null=True)),
                ('end', models.DateTimeField(verbose_name='end', blank=True, null=True)),
                ('status', model_utils.fields.StatusField(choices=[('draft', 'draft'), ('published', 'published'), ('hidden', 'hidden')], no_check_for_status=True, verbose_name='status', max_length=100, default='draft')),
                ('status_changed', model_utils.fields.MonitorField(monitor='status', default=django.utils.timezone.now, verbose_name='status changed')),
                ('title', models.CharField(max_length=255, verbose_name='title')),
                ('body', model_utils.fields.SplitField(no_excerpt_field=True, verbose_name='body')),
                ('pub_date', model_utils.fields.MonitorField(monitor='status', default=django.utils.timezone.now, verbose_name='published date/time', when=set(['published']))),
                ('slug', autoslug.fields.AutoSlugField(max_length=255, populate_from='title', editable=False, unique_for_date='pub_date')),
                ('featured', models.BooleanField(default=False, verbose_name='featured')),
                ('views', models.PositiveIntegerField(default=0, verbose_name='views')),
                ('lead', models.TextField(verbose_name='lead', blank=True)),
                ('comment_enabled', models.BooleanField(default=True, verbose_name='comments enabled')),
                ('_body_excerpt', models.TextField(editable=False)),
            ],
            options={
                'verbose_name': 'Post',
                'ordering': ('-pub_date',),
                'verbose_name_plural': 'Posts',
                'get_latest_by': 'pub_date',
            },
        ),
    ]
